<?php
include("functions.php");
//this file need to konw the keyboard preference

$key_pref = $_GET["key_pref"];

//Text String propose to use GNU Gettext $victor

if($key_pref=="bur")
{
	//if the keyboard pref is in bur
	
	//strings
	$keyboard="uD;bkwf";
	$burmese = "jrefrm";
	$burglish = "t*Fvdyf";
	$word = "pum;vHk;";
	$definition = "t\"dyg,f";
	$example = "Oyrm";
	$list_synonyms = "cifAsm;pmvHk;eJY t\"dy�g,fqif wJh wjcm;pmvHk;awG? cyfqifqifpmvHk;awG? pmvHk;aygif;rSm;aeus pmvHk;awG &Sd&if yk'fuav;eJU jcm;jyD; a&;ay;cJhygvm;/ aus;Zl;ua'u'gyg ukd,fhvl/";
	$tags = "owfyHkuGJ";
	$your_name_will_appear = "eHrnf (ajymif) &,f? ae&m&,f cifAsm;pmvHK;&JUab;em;rSm &SdaerSm";
	$name = "eHrnf (ajymif)";
	$inenglish = "in english";
	$continue = "'kd;xm;"; //button
	$edit_button = "rjyD;ao;";
	$insert_button = "odrf;vdkufprf;";

	//css style classes
	$textdark = "textdarkb";
	$button = "buttonb";
	$textarea = "textareab";
	$textbox = "textboxb";
}

else
{
	//if the keyboard preference is in bglish
	
	//strings
	$keyboard = "Keyboard";
	$burmese = "Burmese";
	$burglish = "Burglish";
	$word = "Word";
	$definition = "Definition";
	$example = "Example";
	$list_synonyms = "List synonyms, related words and common misspellings, separated by commas.";
	$tags = "Tags";
	$your_name_will_appear = "The (nick) name and location you enter below will appear next to the entry.";
	$name = "Your (nick) name";
	$inenglish = "Location";
	$continue = "Continue";  //button
	$edit_button = "Edit";
	$insert_button = "Add" ;


	//css style classes
	$textdark = "textdark";
	$button = "button";
	$textarea = "textarea";
	$textbox = "textbox";
}





$word_from_add = $_POST["word"];
$definition_from_add = $_POST["definition"];
$example_from_add = $_POST["example"];
//$tags_from_add = $_POST["tags"]; //commonly mispelled words
$author_from_add = $_POST["author"];


if($key_pref=="bur")
{
	
	$inenglish_from_add = $_POST["english"];
}


?>









<HTML>
<HEAD>
<TITLE>Word Rebel</TITLE>
<script language="JavaScript" src="javascript_functions.js"></script>


<link rel="stylesheet" type="text/css" href="default.css">
<BODY bgcolor="999966">




<TABLE BORDER="0" CELLPADDING=0 CELLSPACING=0 width="683" align="center">


	<TR>
		<TD valign="top" colspan="3"><img src="images/title-gawdi.gif"
			border=0 width="683" height="71"></TD>
	</TR>



	<TR>
		<TD valign="top" colspan="3">

		<P><BR>
		<!-- MENU -->
		<? print_main_menu(); ?>


		</TD>
	</TR>






	<TR>
		<TD valign="top"><!-- LEFT COL -->








		<TABLE BORDER="0" CELLPADDING=0 CELLSPACING=0 width="464">

			<TR>
				<TD colspan="3"><img src="images/page_top.gif" border=0
					width="464" height="27"></TD>
			</TR>

			<TR>
				<TD background="images/page_left.gif" width="23"><img
					src="images/space.gif" border=0 width="17" height="1"></TD>

				<TD bgcolor="CCCC99"><img src="images/space.gif" border="0"
					width="428" height="1"><BR>

				<!-- start of form -->
				<form name="edit" action="add.php?key_pref=<? echo $key_pref; ?>&edit=1"
				method=post>
				<table border="0" cellpadding="0" cellspacing="5">
				
					<!--  
					<tr>
						<td class=<? echo $textdark; ?> ><? echo $keyboard; ?></td>
						<td class=<? echo $textdark; ?>>
						<?

						if($key_pref=="bur")
						{
							echo $burmese;
						}
						else
						{
							echo $burglish;
						}
						?>
						<br>
						</td>
					</tr>
					-->
					
					
					<?
						$word_from_add = htmlspecialchars($word_from_add,ENT_QUOTES);
					?>
					<tr>
						<td class=<? echo $textdark; ?>><? echo $word; ?></td>
						<td class=<? echo $textdark; ?>><? echo $word_from_add; ?></td>
						<INPUT type="hidden" name="word" value="<? echo $word_from_add; ?>">
					</tr>
					
					<?
					
					
					
					if($key_pref=="bur")
					{
						$inenglish_from_add = htmlspecialchars($inenglish_from_add,ENT_QUOTES);
						echo "
					<tr>
						<td class=textdark> $inenglish; </td>
						<td class=textdark>$inenglish_from_add</td>
						<INPUT type=\"hidden\" name=\"inenglish\" value=\"$inenglish_from_add\">
					</tr>
					";
					}
					
					?>
					

					<?
						$definition_from_add = htmlspecialchars($definition_from_add,ENT_QUOTES);
					?>
					<tr valign="top">
						<td class=<? echo $textdark; ?>><? echo $definition; ?></td>
						<td class=<? echo $textdark; ?>><? echo $definition_from_add; ?></td>
						<INPUT type="hidden" name="definition" value="<? echo $definition_from_add; ?>">
					</tr>
					
					
					
					<?
						$example_from_add = htmlspecialchars($example_from_add,ENT_QUOTES);
					?>
					<tr valign="top">
						<td class=<? echo $textdark; ?>><? echo $example; ?></td>
						<td class=<? echo $textdark; ?>><? echo $example_from_add; ?></td>
						<INPUT type="hidden" name="example" value="<? echo $example_from_add; ?>">
					</tr>
					<tr>
						
					</tr>
					
					
					<?
						//$tags_from_add = htmlspecialchars($tags_from_add,ENT_QUOTES);
					?>
					<!--  
					<tr>
						<td class=<? echo $textdark; ?>><? echo $tags; ?></td>
						<td class=<? echo $textdark; ?>><? echo $tags_from_add; ?></td>
						<INPUT type="hidden" name="tags" value="<? echo $tags_from_add; ?>">
					</tr>
					
					-->
					
					
					
					<?
						$author_from_add = htmlspecialchars($author_from_add,ENT_QUOTES);
					?>
					<tr>
						<td nowrap class=<? echo $textdark; ?>><? echo $name; ?></td>
						<td class=<? echo $textdark; ?>><? echo $author_from_add; ?></td>
						<INPUT type="hidden" name="author" value="<? echo $author_from_add; ?>">
					</tr>
					
					<tr valign="center">
						<td></td>
						<td colspan="2"><input type="submit" value="<? echo $edit_button; ?>"
							class=<? echo $button; ?>></td></form>
							
						<!-- form to insert into db -->
						<td >
						<form name="insert" action="insert.php" method=post>
						<INPUT type="hidden" name="word" value="<? echo $word_from_add; ?>">
						<INPUT type="hidden" name="definition" value="<? echo $definition_from_add; ?>">
						<INPUT type="hidden" name="example" value="<? echo $example_from_add; ?>">
						
						<!--  
						<INPUT type="hidden" name="tags" value="<? echo $tags_from_add; ?>">
						-->
						
						<INPUT type="hidden" name="author" value="<? echo $author_from_add; ?>">
						<INPUT type="hidden" name="inenglish" value="<? echo $inenglish_from_add; ?>">
						<INPUT type="hidden" name="key_pref" value="<? echo $key_pref; ?>">
						<input type="submit" value="<? echo $insert_button; ?>" class=<? echo $button; ?> onClick="go('insert.php');" >
					    
						</td>
					</tr>
					

				</table>
				
				<!--  end of form -->
				</TD>










				<TD background="images/page_right.gif" width="19"><img
					src="images/space.gif" border=0 width="16" height="1"></TD>

			</TR>


			<TR>
				<TD colspan="3"><img src="images/page_bott.gif" border=0
					width="464" height="22"></TD>
			</TR>


		</TABLE>





		<!-- END LEFT COL --></td>

		<td><img src="images/space.gif" border=0 width="11" height="1"></td>





		<TD valign=top><!-- START RIGHT COLUMN TOP -->





		<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width="208">

			<TR>
				<TD colspan="3"><img src="images/x_top.gif" border=0
					width="208" height="175"></TD>
			</TR>

			<TR>
				<TD background="images/star_left.gif" width="17"><img
					src="images/space.gif" border=0 width="17" height="1"></TD>

				<TD bgcolor="CC3300"><img src="images/space.gif" border=0
					width="176" height="1"><BR>
				<p> If you don't like what you have entered, please go back and edit</p>



				</TD>

				<TD background="images/star_right.gif" width="17"><img
					src="images/space.gif" border=0 width="17" height="1"></TD>

			</TR>


			<TR>
				<TD colspan="3"><img src="images/star_bott.gif" border=0
					width="208" height="22"></TD>
			</TR>


		</TABLE>


		<!-- END RIGHT COLUMN TOP --></td>
	</tr>






	<tr>
		<td colspan="3" align=center>


		<P><BR>
		<!-- Copyright -->
		<p class="textlight">gollystarz &copy; 2006</p>
		<P><BR>
		</td>
	</tr>




</table>








<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1322223-1";
urchinTracker();
</script>
</BODY>
</HTML>
